<?php 
	require_once ("../../includes/seglogin.php");
	require_once ("../../includes/funciones.php");
	conexion();

if(isset($_GET['id_com']) && is_numeric($_GET['id_com']) && isset($_GET['token']) && $_GET['token'] == $_SESSION['usuario']["token"]){
		
		$consulta = "DELETE FROM comentarios WHERE id_comentario=".$_GET['id_com'];
		$res = mysql_query($consulta);
	}
	header("Location:".obt_raiz());

?>
